<?php

class ville extends CI_Model
{
    public function __construct(){
        parent::__construct(); 
        $this->load->database();
        
   }
    function GetAutocomplete($options = array())
    {
	    $this->db->select('name');
	    $this->db->like('name', $options['keyword'], 'after');
   		$query = $this->db->get('ville');
		return $query->result();
    }
}

?>
